/*
 * BaseGroup.java 2012-8-21
 * Copyright(c) 20012-2015 by covidien
 * ALL Rights Reserved.
 */
package com.mvc.base.model;

import javax.persistence.MappedSuperclass;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

/**
 * 
 * @author Bob pu [bangxiong.pu@covidien.com]
 * @version V1.0 Create Time: 2012-8-21
 */
@MappedSuperclass
public class BaseGroup extends BaseCompany {

	public static final int	STATUS_VALID	= 1;
	public static final int	STATUS_INVALID	= 0;
	@NotNull
	@Length(max = 128)
	private String	        name;
	@NotNull
	private String	        address;
	@Length(max = 32)
	@NotNull
	private String	        linkPerson;
	@Length(max = 32)
	@NotNull
	private String	        linkTelephone;
	@Length(max = 32)
	private String	        fax;
	@Length(max = 256)
	private String	        email;
	@Length(max = 128)
	private String	        site;
	private Integer	        status;
	@NotNull
	private Integer	        userId;
	@Length(max = 64)
	private String	        bankName;
	@Length(max = 128)
	private String	        bankAddress;
	@Length(max = 128)
	private String	        bankAccountName;
	@Length(max = 32)
	private String	        bankNo;
	@Length(max = 32)
	private String	        swiftCode;

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the address
	 */
	public String getAddress() {
		return address;
	}

	/**
	 * @param address
	 *            the address to set
	 */
	public void setAddress(String address) {
		this.address = address;
	}

	/**
	 * @return the linkPerson
	 */
	public String getLinkPerson() {
		return linkPerson;
	}

	/**
	 * @param linkPerson
	 *            the linkPerson to set
	 */
	public void setLinkPerson(String linkPerson) {
		this.linkPerson = linkPerson;
	}

	/**
	 * @return the linkTelephone
	 */
	public String getLinkTelephone() {
		return linkTelephone;
	}

	/**
	 * @param linkTelephone
	 *            the linkTelephone to set
	 */
	public void setLinkTelephone(String linkTelephone) {
		this.linkTelephone = linkTelephone;
	}

	/**
	 * @return the fax
	 */
	public String getFax() {
		return fax;
	}

	/**
	 * @param fax
	 *            the fax to set
	 */
	public void setFax(String fax) {
		this.fax = fax;
	}

	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * @param email
	 *            the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * @return the site
	 */
	public String getSite() {
		return site;
	}

	/**
	 * @param site
	 *            the site to set
	 */
	public void setSite(String site) {
		this.site = site;
	}

	/**
	 * @return the status
	 */
	public Integer getStatus() {
		return status;
	}

	/**
	 * @param status
	 *            the status to set
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}

	/**
	 * @return the userId
	 */
	public Integer getUserId() {
		return userId;
	}

	/**
	 * @param userId
	 *            the userId to set
	 */
	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public void valid() {
		this.status = STATUS_VALID;
	}

	public void invalid() {
		this.status = STATUS_INVALID;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getBankAddress() {
		return bankAddress;
	}

	public void setBankAddress(String bankAddress) {
		this.bankAddress = bankAddress;
	}

	public String getBankAccountName() {
		return bankAccountName;
	}

	public void setBankAccountName(String bankAccountName) {
		this.bankAccountName = bankAccountName;
	}

	public String getBankNo() {
		return bankNo;
	}

	public void setBankNo(String bankNo) {
		this.bankNo = bankNo;
	}

	public String getSwiftCode() {
		return swiftCode;
	}

	public void setSwiftCode(String swiftCode) {
		this.swiftCode = swiftCode;
	}

}
